package com.example.user.demo1.test;

import android.arch.paging.PositionalDataSource;
import android.arch.paging.TiledDataSource;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.RecyclerView;

import com.example.user.demo1.R;
import com.example.user.demo1.bean.DataBean;

import java.util.List;

import butterknife.BindView;

public class SecondActivity extends AppCompatActivity {

    @BindView(R.id.recycle)
    RecyclerView recyclerView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_second);
    }

    private void initView(){



    }

    class MyDataSource extends PositionalDataSource<DataBean> {


        @Override
        public void loadInitial(@NonNull LoadInitialParams params, @NonNull LoadInitialCallback<DataBean> callback) {

        }

        @Override
        public void loadRange(@NonNull LoadRangeParams params, @NonNull LoadRangeCallback<DataBean> callback) {

        }
    }
}
